import request from "./request.js"


export default {
	// 天气信息
	getWeaterInfo(params) {
		return request("/admin/weater/getWeaterInfo", "GET", params)
	},
	// 获取已处理和未处理的报警数据
	getAllDeviceAlarmDisposeInfo(params) {
		return request("/device/deviceAlarmDispose/getAllDeviceAlarmDisposeInfo", "GET", params)
	},
	// 设备详情-各种状态对应的设备数量
	getDeviceStatusNum(params) {
		return request("/device/overviewHome/getDeviceStatusNum", "GET", params)
	},
	// 获取每种设备类型对应的设备数量
	countDeviceByDeviceType(params) {
		return request("/device/deviceType/countDeviceByDeviceType", "GET", params)
	},
	// 设施详情
	getFacilityDetail(params) {
		return request("/daily/largeScreen/getFacilityDetail", "GET", params)
	},
	// 获取一段时间的报警数据信息
	alarmStatistics(params) {
		return request("/device/statisticsApp/alarmStatistics", "GET", params)
	},
	// 实时报警信息
	listDeviceAlarmDispose(params) {
		return request("/device/deviceAlarmDispose/listDeviceAlarmDispose", "GET", params)
	},
	// 当前建筑下，按状态 统计设施
	countFacility(params) {
		return request("/daily/facility/countFacility", "GET", params)
	},
	// 按设备状态统计建筑下设备
	countByBuildId(params) {
		return request("/device/device/countByBuildId", "GET", params)
	},
	// 统计该建筑下所有的视频设备和设备类型下的设备(物联网设备)
	countVideoAndDevice(params) {
		return request("/device/device/countVideoAndDevice", "GET", params)
	},
	// 获取建筑详情
	findById(params) {
		return request("/device/building/findById", "GET", params)
	},
	// // 获取指定楼层 指定状态的设施列表
	// lisUseFacilityTypeList(params){
	// 	return request("/daily/facility/lisUseFacilityTypeList", "GET", params)
	// },
	// 获取指定楼层 指定状态的设施巡检路线列表
	lisUseFacilityTypeList(params) {
		return request("/daily/inspectionLine/findList", "GET", params)
	},
	// 获取每个设施的详情
	page(params) {
		return request("/daily/facility/page", "GET", params)
	},
	// 获取指定建筑楼层下指定状态所有的设备类型
	listDeviceTypeByBuild(params) {
		return request("/device/deviceType/listDeviceTypeByBuild", "GET", params)
	},
	// 获取设备以及设备以及设备最新测点数据
	listDeviceDetailInfo(params) {
		return request("/device/device/listDeviceDetailInfo", "GET", params)
	},
	// 批量获取直播地址（重点区域，异常区域）
	getVideoLiveUrlByDept(params) {
		return request("/video/videodevice/getVideoLiveUrlByDept", "GET", params)
	},
	// 获取楼层平面图
	planPage(params) {
		return request("/device/buildingPlan/planPage", "GET", params)
	},
	// 获取平面图显示建筑列表
	buildingPage(params) {
		return request("/device/building/page", "GET", params)
	},
	// 通过域名获取站点信息（包含自定义信息）
	// getTenantInfoByDomain(params){
	// 	return request("https://test.iot.store//admin/tenant/getTenantInfoByDomain", "GET", params)
	// },
	// 获取建筑对应楼层设备标记列表
	getBuildingPlanPopup(params) {
		return request("/device/buildingPlan/getBuildingPlanPopup", "GET", params)
	},
	/**
	 * @description: 获取此单位每一个建筑物的所有状态设备
	 * @param {deptId, isDept} params
	 * @return {{建筑物1:{警告,正常,离线,故障}},{建筑物2:{...}},{建筑物3:{...}}}
	 */
	getlistBuildStatusNum(params) {
		return request("/device/building/listBuildStatusNum", 'GET', params)
	},
	/**
	 * @description: 获取单位地址
	 * @param {deptId, isDept} params
	 * @return { Object }
	 */
	getDeviceAlarmDisposeById(params) {
		// admin/dept/findDetail?id=466
		return request("/admin/dept/findDetail?id=466", 'GET', params)
	},
	//获取单位下高德地图建筑列表
	getBuildingPage(params) {
		return request("/device/device/listDeptFloorAlarm", "GET", params)
	},
	//获取建筑当前最新的评分列表
	getBuildingScore(params) {
		return request("/safety/projectManagement/getLatestFraction", "GET", params)
	},
	//获取九大系统
	getAllSystem(params) {
		return request("/device/realTime/countAlarmBySystem", "GET", params)
	},
	//获取对应系统的报警信息
	getAlarmSystem(params) {
		return request("/device/realTime/listAlarmRecord", 'GET', params)
	},
	//获取报警信息详情
	getAlarmDetail(params) {
		return request("/device/realTime/getAlarmDetailData", "GET", params)
	},
	//获取当前设备的具体报警信息
	getDeviceAlarmDetail(params) {
		return request("/device/deviceAlarmDispose/listDeviceAlarmDispose", "GET", params)
	},
	//获取设备当前的电压对应信息
	getDeviceInfo(params) {
		return request("/device/devicePoint/getByDeviceTyeId", "GET", params)
	},
	//当前的报警单位
	getAlarmDept(params) {
		return request("/device/device/listDeptAlarm", "GET", params)
	},
	//当前的推送记录
	getPushHistory(params) {
		return request("/device/pushLog/listPushLogs", "GET", params)
	},
	//故障数量
	getDeviceFault(params) {
		return request("/device/deviceAlarmDispose/realTimeInfo", "GET", params)
	},
	//获取各种报警数量
	getAlarmCount(params) {
		return request("/device/alarmStatistics/countByStatus", "GET", params)
	},
	//获取报警日志
	getAlarmLog(params) {
		return request("/device/deviceAlarmDispose/listDeviceAlarmDispose", "GET", params)
	},

	/**
	 * @description: 获取此单位每一个建筑物的所有状态设备
	 * @param {deptId, isDept} params
	 * @return {{建筑物1:{警告,正常,离线,故障}},{建筑物2:{...}},{建筑物3:{...}}}
	 */
	getlistBuildStatusNum(params) {
		return request("/device/building/listBuildStatusNum", 'GET', params)
	},
	/**
	 * @description: 获取单位地址
	 * @param {deptId, isDept} params
	 * @return { Object }
	 */
	getDeviceAlarmDisposeById(params) {
		// admin/dept/findDetail?id=466
		return request("/admin/dept/findDetail", 'GET', params)
	},
	/**
	 * @description: 获取单位地址
		* @param {deptId, isDept} params
	 * @return { Object }
	 */
	getLowestFraction(params) {
		// admin/dept/findDetail?id=466
		return request("/safety/projectManagement/getLowestFraction", 'GET', params)
	},


	getRealVideoPicture(params) {
		return request(
			'/video/videodeviceApp/capturePicture',
			'GET',
			params
		)
	},
	//通过id查找摄像头位置
	getMonitorLocation(params) {
		return request(
			'/video/videodevice/getById',
			'GET',
			params
		)
	},
	//七天内的报警情况
	getLatestdaysAlarmLines(params) {
		return request(
			'/device/statisticsApp/buildAlarmAnalysis',
			'GET',
			params
		)
	},
	//七天内的警情情况
	getAlarmContion(params) {
		return request(
			'/device/alarmStatistics/getHistoryAlarmStatusCount',
			'GET',
			params
		)
	},
	//获取单位的消防负责人
	getDeptUser(params) {
		return request(
			'/admin/user/listXfUser',
			'GET',
			params
		)
	},
	//查看设备详情
	getVideoId(params) {
		return request(
			'/device/device/' + params,
			'GET',
		)
	},
	//获取评估记录
	getSafetyHistory(params){
		return request(
		 '/safety/buildEvaluation/getEvaluationRecordsPage',
		 'POST',
		 params
		)
	},
	//获取设备详情
	getDeviceDetail(params){
		return request(
		'/device/device/'+params,
		'GET'
		)
	},
	//新的获取建筑详情
    getNewBuildPopup(params){
		return request(
		'/device/building/popup',
		'GET',
		params
		)
	},
	remoteGet(params) {
		return request('/admin/dict/type/getcode', 'GET', params)
	},
	getconfig(params) {
		return request('/admin/sysconfigcomm/getconfig', 'GET', params)
	},
}
